package com.android.nzb.study.changactivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.android.nzb.study.AndroidStudyNzb;
import com.android.nzb.study.R;

public class Activity2  extends Activity
{
	public void onCreate(Bundle saveInstanceState)
	{
		super.onCreate(saveInstanceState);
		setContentView(R.layout.activity2);
		
		Button button=(Button)findViewById(R.id.tonextactvitiy);
		button.setOnClickListener(
				new Button.OnClickListener()
				{
					public void onClick(View v)
					{
						Intent intent=new Intent();
						intent.setClass(Activity2.this, Activity1.class);
						startActivity(intent);
						Activity2.this.finish();
					}
				}
		);
		
		Button button2=(Button)findViewById(R.id.backtomenu);
		button2.setOnClickListener(
				new Button.OnClickListener()
				{
					public void onClick(View v)
					{
						Intent intent=new Intent();
						intent.setClass(Activity2.this, AndroidStudyNzb.class);
						startActivity(intent);
						Activity2.this.finish();
					}
				}
		);
	}

}
